home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
ixemulsrc.lha
/
ixemul-41.4
/
gnulib
/
fixsfsi.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-19
|
385b
|
24 lines
#include "common.h"
#ifdef IEEE_SINGBAS
#include <inline/mathieeesingbas.h>
#else
#include <inline/mathffp.h>
#include <inline/mathtrans.h>
#endif
SItype
__fixsfsi (a)
FLOAT a;
{
#ifdef IEEE_SINGBAS
return IEEESPFix(a);
#else
#if 1
return SPFix( SPFieee(a));
#else
/* don't know.. */
return SPFix( SPAdd (SPFieee(a), SPFieee( *(long *)(float[]){0.5}) ));
#endif
#endif
}